<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/css/xadmin.css">
</head>
<body>
<div class="x-body layui-anim layui-anim-up">
    <blockquote class="layui-elem-quote">欢迎管理员：
        <span class="x-red"><!--{$Think.session.admin_name}-->！</span><span id="time"></span></blockquote>
    <fieldset class="layui-elem-field">
        <legend>数据统计</legend>
        <div class="layui-field-box">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none" style="width: 100%; height: 90px;">
                            <div carousel-item="">
                                <ul class="layui-row layui-col-space10 layui-this">
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>产品数</h3>
                                            <p>
                                                <cite><!--{$product}--></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>询盘数</h3>
                                            <p>
                                                <cite><!--{$mess}--></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>新闻数</h3>
                                            <p>
                                                <cite><!--{$news}--></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>视频数</h3>
                                            <p>
                                                <cite><!--{$video}--></cite></p>
                                        </a>
                                    </li>
                                    <li class="layui-col-xs2">
                                        <a href="javascript:;" class="x-admin-backlog-body">
                                            <h3>访问数</h3>
                                            <p>
                                                <cite><?php echo $params['total'];?></cite></p>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>系统信息</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>访问量概况</th>
                    <td>总访问量：<?php echo $params['total'];?>，
                        今日访问量：<?php echo $params['day'];?>，
                        昨日访问量：<?php echo $params['yesterday'];?>

                        【本周访问量：<?php echo $params['week'];?>，
                        上周访问量：<?php echo $params['last_week'];?>，
                        对比上周访问：
                        <?php if($params['contrast_week'] > 0):?>
                        <span style="color: red;font-weight: bold">上升</span>
                        <?php elseif($params['contrast_week'] == 0):?>
                        <span style="color: #FFB800;font-weight: bold">持平</span>
                        <?php else:?>
                        <span style="color: #5FB878;font-weight: bold">下降</span>
                        <?php endif;?>
                        <?php echo $params['contrast_week'];?>%】
                        【本月访问量：<?php echo $params['month'];?>，
                        上月访问量：<?php echo $params['last_month'];?>，
                        对比上月访问：
                        <?php if($params['contrast_month'] > 0):?>
                        <span style="color: red;font-weight: bold">上升</span>
                        <?php elseif($params['contrast_month'] == 0):?>
                        <span style="color: #FFB800;font-weight: bold">持平</span>
                        <?php else:?>
                        <span style="color: #5FB878;font-weight: bold">下降</span>
                        <?php endif;?>
                        <?php echo $params['contrast_month'];?>%】
                    </td></tr>
                <tr>
                    <th>网站名称</th>
                    <td>欧锐激光</td></tr>
                <tr>
                    <th>域名</th>
                    <td>www.oreelaser.cn</td></tr>
                <tr>
                    <th>PHP版本</th>
                    <td>5.6.34</td></tr>
                <tr>
                    <th>最大上传限制</th>
                    <td>50M</td></tr>
                </tbody>
            </table>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>开发团队</legend>
        <div class="layui-field-box">
            <table class="layui-table">
                <tbody>
                <tr>
                    <th>版权所有</th>
                    <td>标梵互动
                        <a href="http://biaofan.cc/" class='x-a' target="_blank">访问官网</a></td>
                </tr>
                <tr>
                    <th>开发者</th>
                    <td>标梵互动</td></tr>
                </tbody>
            </table>
        </div>
    </fieldset>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
<script>
    window.onload=function(){
        setInterval(function(){
            var date=new Date();
            var year=date.getFullYear(); //获取当前年份
            var mon=date.getMonth()+1; //获取当前月份
            var da=date.getDate(); //获取当前日
            var day=date.getDay(); //获取当前星期几
            var h=date.getHours(); //获取小时
            var m=date.getMinutes(); //获取分钟
            var s=date.getSeconds(); //获取秒

            var time ='当前时间:'+year+'年'+mon+'月'+da+'日'+'星期'+day+' '+h+':'+m+':'+s;
            $('#time').html(time)
            },1000);

    }

</script>
</body>
</html>